﻿<Window x:Class="iStudio.View.Dialog.Preferences"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Preferences" Height="400" Width="600" WindowStyle="None" WindowStartupLocation="CenterOwner" AllowsTransparency="True" Background="Transparent" Icon="/iStudio;component/Resources/Icons/iStudio_256x256.png" ShowInTaskbar="False" ResizeMode="NoResize">
    <Grid>
        <Border CornerRadius="5" BorderBrush="#FF515151" BorderThickness="0" Margin="0">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF1b1b1b" Offset="1" />
                    <GradientStop Color="#FF464646" Offset="0" />
                </LinearGradientBrush>
            </Border.Background>
            
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="25" />
                    <RowDefinition />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>

                <TextBlock Grid.ColumnSpan="2" Text="Preferences" MouseDown="HeaderMouseDown" Foreground="#FFABABAB" HorizontalAlignment="Stretch" VerticalAlignment="Top" TextAlignment="Center" Margin="0,2,0,0" FontSize="13" FontWeight="SemiBold" Height="20" />
                
                <StackPanel Grid.ColumnSpan="2" Orientation="Horizontal" Margin="0,5,5,0" HorizontalAlignment="Right" VerticalAlignment="Top" Grid.Column="1">
                    <TextBlock Name="CloseButton" Style="{StaticResource HeaderButton}" Text="r" FontFamily="Webdings" Margin="5,0,0,0" HorizontalAlignment="Right" VerticalAlignment="Top" MouseLeftButtonUp="CloseButtonMouseLeftButtonUp" />
                </StackPanel>
                
                <TreeView Grid.Row="1" Name="setting_tree" Width="180" ItemsSource="{Binding}" SelectedItemChanged="SettingTreeSelectedItemChanged">
                    
                </TreeView>
                
                <Grid Grid.Row="1" Grid.Column="1"></Grid>

                <StackPanel Grid.Row="2" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,15,15">
                    <Button Content="Save" Grid.Row="1" Height="23" Name="button_ok" Margin="0,0,10,0"  VerticalAlignment="Bottom" Width="75" IsCancel="True" />
                    <Button Content="Cancel" Grid.Row="1" Height="23" HorizontalAlignment="Right" Name="button_cancel" VerticalAlignment="Bottom" Width="75" IsCancel="True" />
                </StackPanel>
            </Grid>
        </Border>
    </Grid>
</Window>
